package mingling;

public class RemoteLoader {

	public static void main(String[] args) {
		RemoteControl remoteControl = new RemoteControl();
		
		Light livingRoomLight = new Light("Living Room 0");
		Light kitchenRoomLight = new Light("kitchen Room 1");
		
		LightOnCommand livingRoomCommandOn = new LightOnCommand(livingRoomLight);
		LightOffCommand livingRoomCommandOff = new LightOffCommand(livingRoomLight);
		
		LightOnCommand kitchenRoomCommandOn = new LightOnCommand(kitchenRoomLight);
		LightOffCommand kitchenRoomCommandOff = new LightOffCommand(kitchenRoomLight);
		
		remoteControl.setCommand(0, livingRoomCommandOn, livingRoomCommandOff);
		remoteControl.setCommand(1, kitchenRoomCommandOn, kitchenRoomCommandOff);
		
		System.out.println(remoteControl);
		
		remoteControl.onButtonWasPushed(0);
		remoteControl.offButtonWasPushed(0);
		remoteControl.onButtonWasPushed(1);
		remoteControl.offButtonWasPushed(1);
	}
}
